/* 独立注册页面专用样式 */
.register-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    padding: 20px;
}

.register-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

.register-header {
    padding: 30px 20px;
    text-align: center;
    background: linear-gradient(135deg, #1da455, #00a854);
    color: white;
}

.register-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.register-header p {
    margin: 10px 0 0 0;
    font-size: 14px;
    opacity: 0.9;
}

.register-body {
    padding: 30px 25px;
}

.form-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.form-footer p {
    color: #666;
    font-size: 14px;
}

.form-footer a {
    color: #4a90e2;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

.error-message {
    color: #ff4d4f;
    font-size: 12px;
    margin-top: 5px;
    display: none;
    transition: opacity 0.3s ease;
}

.form-group.has-error .input-with-icon {
    border-color: #ff4d4f;
}

.form-group.has-error .error-message {
    display: block;
    opacity: 1;
}

/* 角色选择样式 */
.role-selection {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.role-option {
    flex: 1;
    text-align: center;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.role-option:hover {
    border-color: #1da455;
}

.role-option.selected {
    border-color: #1da455;
    background-color: #f0f9f5;
}

.role-icon {
    font-size: 24px;
    margin-bottom: 8px;
    color: #666;
}

.role-option.selected .role-icon {
    color: #1da455;
}

.role-name {
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.role-desc {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* 输入框样式 */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-with-icon:focus-within {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.input-with-icon i {
    padding: 0 12px;
    color: #888;
    font-size: 16px;
}

.input-with-icon input {
    flex: 1;
    padding: 12px 10px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
}

/* 注册按钮样式 */
.register-btn {
    width: 100%;
    padding: 10px;
    background-color: #1da455;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    margin-bottom: 10px;
}

.register-btn:hover {
    background-color: #1a944b;
}

.register-btn:active {
    transform: scale(0.98);
}

.register-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* 提示框样式 */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: opacity 0.5s ease;
}

.alert.auto-hide {
    animation: fadeOut 5s forwards;
}

.alert-danger {
    background: #ffeaea;
    color: #e74c3c;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #e8f7ee;
    color: #27ae60;
    border: 1px solid #c3e6cb;
}

/* 动画效果 */
@keyframes slideIn {
    from {transform: translateY(-20px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; display: none; }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .register-header {
        padding: 20px 15px;
    }

    .register-header h1 {
        font-size: 20px;
    }

    .register-body {
        padding: 20px 15px;
    }

    .role-selection {
        flex-direction: column;
    }
}